package io.renren.modules.jxgk.service.impl;

import io.renren.modules.jxgk.dao.ClassCourse2Dao;
import io.renren.modules.jxgk.entity.ClassCourse2Entity;
import io.renren.modules.jxgk.service.ClassCourse2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ClassCourse2ServiceImpl implements ClassCourse2Service{
    @Autowired
    ClassCourse2Dao classCourse2Dao;
    public List<ClassCourse2Entity> queryList(Map<String, Object> map){
        return classCourse2Dao.queryList(map);
    }
    public int queryTotal(Map<String, Object> map){
        return  classCourse2Dao.queryTotal(map);
    }
    public void deleteBatch(String[] termIds){
        classCourse2Dao.deleteBatch(termIds);
    }
    public void save(ClassCourse2Entity ste){
        classCourse2Dao.save(ste);
    }
    public ClassCourse2Entity queryObject(String index){
        return classCourse2Dao.queryObject(index);
    }
    public void update(ClassCourse2Entity ste){
        classCourse2Dao.update(ste);
    }
    public void updateCourseTime( String courseTime, String classCourseId){
        classCourse2Dao.updateCourseTime(courseTime,classCourseId);
    }
    public List<ClassCourse2Entity> selectAll(){
        return classCourse2Dao.selectAll();
    }

    @Override
    public List<ClassCourse2Entity> SelectForEchartsList(Map<String, Object> map) {
        return classCourse2Dao.SelectForEchartsList(map);
    }

    @Override
    public int SelectForEchartsTotal(Map<String, Object> map) {
        return  classCourse2Dao.SelectForEchartsTotal(map);
    }
}
